<!--------------------------------------------------------------
>//	Company:	HTHK
>//	NAME:	    ProjectList.jsp
>//	TITLE:	    The maintence of project
>//	FUNCTION:	The list page of project
>//	BY:	        Kodak Xu
>//	DATE:	    09/12/2003
>//	update_date:	2004-2-13 17:36
>//	update_by:	Beyes Xia
>// --------------------------------------------------------------
>// MODIFICATION HISTORY
>// --------------------------------------------------------------
>//	CR Log #:  99999  BY:  XXXX   DATE:  dd/mm/yyyy
>//	ERROR:	XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
>//	FIX:	XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
>// --------------------------------------------------------------
-->

<html>
<%@ include file="../tssheader.jsp" %>
<%@ page import="tss.project.*" %>
<body>
<%
    
    ProjectBean[] projects = (ProjectBean[])request.getAttribute("projects");
    if (projects==null) {
        projects = new Project[0];
    }
    
%>
<script language="JavaScript1.1">
<!--
//-->
</script>
<body >
<h2>Project Maintenance</h2>
<INPUT type=button value=Back onclick="location.href='<%=contextPath%>/tss/project/ProjectSearch.jsp'">
<h5><%=projects.length%> Project(s)</h5>
<table cols=3 border=1 >
<thead>
  <td nowrap><b>Project Name</b></td>
  <td nowrap><b>Project Category</b></td>
<!-- Add By Beyes Xia -->  
  <td nowrap><b>Project Group</b></td> 
<!-- Add Date : 2004-2-13 -->   
  <td nowrap><b>Comments</b></td>
  <td nowrap><b>&nbsp;&nbsp;From&nbsp;&nbsp;&nbsp;</b></td>
  <td nowrap><b>&nbsp;&nbsp;To&nbsp;&nbsp;&nbsp;&nbsp;</b></td>
  <td nowrap><b>Chargeable</b></td>
</thead>
<%  for (int i=0; i<projects.length; i++)
    {   %>
<tr>
    <td><a href="<%=contextPath%>/servlet/tss.project.ProjectSearch?formAction=Update&project_name=<%=projects[i].getProject_name()%>"><%=projects[i].getProject_name()%></a></td>
    <td><%=projects[i].getProject_category_name()%></td>
<!-- Add By Beyes Xia -->    
    <td><%=projects[i].getProject_group_name()%></td>
<!-- Add Date : 2004-2-13 -->
    <td><%=(projects[i].getComments().equals("")?"&nbsp;":projects[i].getComments())%></td>
    <td><%=(projects[i].getEffective_range_from().equals("")?"&nbsp;":projects[i].getEffective_range_from())%></td>
    <td><%=(projects[i].getEffective_range_to().equals("")?"&nbsp;":projects[i].getEffective_range_to())%></td>
    <td><%=(projects[i].getChargeable_ind().equals("")?"&nbsp;All":projects[i].getChargeable_ind())%></td>
	
</tr>
<%  } %>
</table>
</body>
<%@ include file="../tssfooter.jsp" %>
</body>
</html>
